package com.example.springboothikaricp.service;

import com.example.springboothikaricp.utils.DbUtil;
import com.example.springboothikaricp.utils.Test;
import com.hjkj.orm.OrmUtil;
import com.hjkj.webservice.server.exception.ValidException;
import com.hjkj.webservice.server.transaction.ConnectionContextHolder;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.*;

public class ComprehensiveCfgService {

    private static final Logger LOG = LoggerFactory.getLogger(ComprehensiveCfgService.class);
    public static String findBizTree(String reqStr){
        try {
            Connection connection = ConnectionContextHolder.getIfNull();
            Test where = new Test();
            List<Test> list = OrmUtil.select(where, connection);
            System.out.println(list.get(0).getId());
            return null;
        } catch (Throwable t) {
            LOG.error("findBizTree meet error! reqStr=" + reqStr, t);
            throw new ValidException("findBizTree meet error!");
        }
    }

}
